<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <html id="outputHtml1">
            <head id="outputHead1">
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <script language="javascript" src="resources/js/dropdown.js"></script>
            </head>
            <body id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1" styleClass="bodyCenterAlign">
                    <jsp:directive.include file="fragments/HeaderFragment.jspf"/>
                    <jsp:directive.include file="fragments/MenuFragment.jspf"/>
                    <!--ice:messages errorClass="errorMessage" fatalClass="fatalMessage" id="messages1" infoClass="infoMessage" showSummary="true" warnClass="warnMessage"/-->
                    <ice:panelLayout styleClass="mainPL">
                        <ice:messages errorClass="errorMessage" fatalClass="fatalMessage" id="messages1" infoClass="infoMessage" showSummary="true" warnClass="warnMessage"/>
                        <br/>
                        <ice:outputLabel styleClass="titlePageAdmin" value="Reporte / Horas Mantenimiento Linea"/>
                        <br/>


                        <ice:panelGrid width="100%">
                            <ice:panelGrid columns="2" width="50%">
                                <br/>
                                <br/>
                                <ice:outputLabel styleClass="lb1" value="Linea"/>
                                <ice:selectOneMenu partialSubmit="true" value="#{ReporteHorasLineaPage.linea}">
                                    <f:selectItem itemValue="-1" itemLabel="Selecciona..." />
                                    <f:selectItems value="#{ReporteHorasLineaPage.lineaItems}"/>
                                </ice:selectOneMenu>
                            </ice:panelGrid>

                        </ice:panelGrid>
                        <br/>
                        <ice:commandButton  action="#{ReporteHorasLineaPage.consultar}" value="Consultar"/>
                        <br/>

                        <br/>
                        <ice:panelGrid width="100%" rendered="#{ReporteHorasLineaPage.showReport}">
                            <ice:dataTable rows="10"  value="#{ReporteHorasLineaPage.reporteHoras}" var="row" width="100%">
                                  <f:facet name="header">
                                    <ice:panelGroup style="height: 20px;">
                                        <ice:outputText style="font-size:11px;font-weight:bold;color:#000000;" value="Automoviles"/>
                                    </ice:panelGroup>
                                </f:facet>
                                <ice:column>
                                    <f:facet name="header">
                                        <ice:panelGroup style="text-align:left">
                                            <ice:outputText styleClass="lb1" value="Placa"/>
                                        </ice:panelGroup>
                                    </f:facet>
                                    <ice:panelGroup style="text-align:left">
                                        <ice:outputText value="#{row.placa}"/>
                                    </ice:panelGroup>
                                </ice:column>
                                <ice:column>
                                    <f:facet name="header">
                                        <ice:panelGroup style="text-align:left">
                                            <ice:outputText  styleClass="lb1" value="Modelo"/>
                                        </ice:panelGroup>
                                    </f:facet>
                                    <ice:panelGroup style="text-align:left">
                                        <ice:outputText value="#{row.modelo}"/>
                                    </ice:panelGroup>
                                </ice:column>
                                <ice:column>
                                    <f:facet name="header">
                                        <ice:panelGroup style="text-align:left">
                                            <ice:outputText  styleClass="lb1" value="Fecha Entrada"/>
                                        </ice:panelGroup>
                                    </f:facet>
                                    <ice:panelGroup style="text-align:left">
                                        <ice:outputText value="#{row.fechaEntrada.time}">
                                            <f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" timeZone="#{scope$SessionBean.TIME_ZONE}" />
                                        </ice:outputText>

                                    </ice:panelGroup>
                                </ice:column>
                                <ice:column>
                                    <f:facet name="header">
                                        <ice:panelGroup style="text-align:left">
                                            <ice:outputText  styleClass="lb1" value="Fecha Salida"/>

                                        </ice:panelGroup>
                                    </f:facet>
                                    <ice:panelGroup style="text-align:left">
                                        <ice:outputText value="#{row.fechaSalida.time}">
                                             <f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" timeZone="#{scope$SessionBean.TIME_ZONE}"/>
                                        </ice:outputText>
                                    </ice:panelGroup>
                                </ice:column>
                                <ice:column>
                                    <f:facet name="header">
                                        <ice:panelGroup style="text-align:left">
                                            <ice:outputText  styleClass="lb1" value="Horas Revision"/>
                                        </ice:panelGroup>
                                    </f:facet>
                                    <ice:panelGroup style="text-align:left">
                                        <ice:outputText value="#{row.horas.time}">
                                            <f:convertDateTime pattern="HH:mm:ss" timeZone="#{scope$SessionBean.TIME_ZONE}"/>
                                        </ice:outputText>
                                    </ice:panelGroup>
                                </ice:column>
                            </ice:dataTable>
                        </ice:panelGrid>
                    </ice:panelLayout>
                </ice:form>
            </body>
        </html>
    </f:view>
</jsp:root>
